@extends('public.pub')
@section('title','用户注册')
@section('content')
    <div class="row">
        <div class="col-xs-6 col-xs-offset-3">
            <form action="{{ route('admin.user.signUp') }}" method="post" class="form-horizontal" role="form">
                <div class="form-group">
                    <legend>添加管理员</legend>
                </div>
                @csrf
                <div class="form-group">
                    <label for="username" class="col-sm-3 control-label">用户名：</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control" id="" placeholder="" name="username"
                               value="{{ old('username') }}">
                    </div>

                    <div class="col-sm-4">
                        @if($errors->has('username'))
                            {{ $errors->first('username') }}
                        @endif
                    </div>
                </div>
                <div class="form-group">
                    <label for="password" class="col-sm-3 control-label">密码：</label>
                    <div class="col-sm-5">
                        <input type="password" class="form-control" id="password" name="password" placeholder=""
                               value="">
                    </div>
                    <div class="col-sm-4">
                        @if($errors->has('password'))
                            {{ $errors->first('password') }}
                        @endif
                    </div>
                </div>
                <div class="form-group">
                    <label for="password_confirmation" class="col-sm-3 control-label">确认密码：</label>
                    <div class="col-sm-5">
                        <input type="password" class="form-control" id="password_confirmation" name="password_confirmation"
                               placeholder="" value="">
                    </div>
                    <div class="col-sm-4">
                        @if($errors->has('password_confirmation'))
                            {{ $errors->first('password_confirmation') }}
                        @endif
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-9 col-sm-offset-3">
                        <button type="submit" class="btn btn-primary">注册</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection